package com.zhoujing.cinema.service;

import com.github.pagehelper.PageInfo;
import com.zhoujing.cinema.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：ywj
 * @date ：Created in 2020/3/22 17:58
 * @description：
 * @modified By：
 * @version: $
 */
public interface CinemaService {
    public City findIdByName(String name);
    public List<City> findAllCity();
    public List<CinemaBrand> findCinemaBrand(Integer id);
    public List<CinemaArea> findCinemaArea(Integer id);
    public List<CinemaType> findCinemaType(Integer id);
    public PageInfo<Cinema> findCinema(Integer id, Integer pageNum, int pageSize);
    public PageInfo<Cinema> findCinemaWithQuery(CinemaDto cinemaDto,Integer pageNum, int pageSize);
    public Cinema findCinemaById(Integer id);
    public List<Session> findTodaySession(Session session);
    public Session findSessionById(Integer id);
    public void updateSeat(Session session);
    public void addOrder(Order order);
    public List<Order1> findOrderByUserId(Integer userId);
    public PageInfo<Cinema> findCinemas(Integer pageNum, int pageSize);
    public PageInfo<Cinema> searchCinemas(String name,Integer pageNum, int pageSize);
    public void insertCinema(Cinema cinema);
    public void updateCinema(Cinema cinema);
    public void updateCinema1(Cinema cinema);
    public Cinema selectCinemaById1(Integer id);
    public void insertSession(Session session);
    public void updateSession(Session session);
    public Session selectSessionByIds(Integer id);
}
